import request from '@/utils/request'

// 查询我的未处理的整改任务列表
export function listMyRectifyTask(data) {
    return request({
      url: '/hidden/ManagementProcess/wait',
      method: 'post',
      data:data
  })
}

// 查询我的已处理的整改任务列表
export function listMyHandleRectifyTask(data) {
    return request({
      url: '/hidden/ManagementProcess/already',
      method: 'post',
      data:data
  })
}

// 查询我的整改任务详情
export function getRectifyTaskInfo(processId) {
    return request({
      url: '/hidden/ManagementProcess/'+processId,
      method: 'get',
  })
}

//提交我的验收任务
export function submitAcceptTask(data) {
    return request({
      url: '/hidden/ManagementProcess/confirm',
      method: 'post',
      data:data
  })
}

//提交我的整改任务
export function submitRectifyTask(data) {
    return request({
      url: '/hidden/ManagementProcess/rectify',
      method: 'post',
      data:data
  })
}
//提交我的分配任务
export function submitAllocationTask(data) {
    return request({
      url: '/hidden/ManagementProcess',
      method: 'put',
      data:data
  })
}